home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _7DC81E5EB0264C89B11D821318FC3EB5 < prev    next >
Encoding:
Text File  |  2003-06-15  |  2.6 KB  |  100 lines

  1. // RmXmlCss.cpp : Implementation of DLL Exports.
  2.  
  3.  
  4. // Note: Proxy/Stub Information
  5. //      To build a separate proxy/stub DLL, 
  6. //      run nmake -f RmXmlCssps.mk in the project directory.
  7.  
  8. #include "stdafx.h"
  9. #include "resource.h"
  10. #include <initguid.h>
  11. #include "RmXmlCss.h"
  12.  
  13. #include "RmXmlCss_i.c"
  14. #include "Transform_ImportTopic.h"
  15. #include "DlgParams_ImportTopic.h"
  16.  
  17.  
  18. CComModule _Module;
  19.  
  20. BEGIN_OBJECT_MAP(ObjectMap)
  21. OBJECT_ENTRY(CLSID_Transform_ImportTopic, CTransform_ImportTopic)
  22. OBJECT_ENTRY(CLSID_DlgParams_ImportTopic, CDlgParams_ImportTopic)
  23. END_OBJECT_MAP()
  24.  
  25. class CRmXmlCssApp : public CWinApp
  26. {
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CRmXmlCssApp)
  32.     public:
  33.     virtual BOOL InitInstance();
  34.     virtual int ExitInstance();
  35.     //}}AFX_VIRTUAL
  36.  
  37.     //{{AFX_MSG(CRmXmlCssApp)
  38.         // NOTE - the ClassWizard will add and remove member functions here.
  39.         //    DO NOT EDIT what you see in these blocks of generated code !
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42. };
  43.  
  44. BEGIN_MESSAGE_MAP(CRmXmlCssApp, CWinApp)
  45.     //{{AFX_MSG_MAP(CRmXmlCssApp)
  46.         // NOTE - the ClassWizard will add and remove mapping macros here.
  47.         //    DO NOT EDIT what you see in these blocks of generated code!
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. CRmXmlCssApp theApp;
  52.  
  53. BOOL CRmXmlCssApp::InitInstance()
  54. {
  55.     _Module.Init(ObjectMap, m_hInstance, &LIBID_RMXMLCSSLib);
  56.     return CWinApp::InitInstance();
  57. }
  58.  
  59. int CRmXmlCssApp::ExitInstance()
  60. {
  61.     _Module.Term();
  62.     return CWinApp::ExitInstance();
  63. }
  64.  
  65. /////////////////////////////////////////////////////////////////////////////
  66. // Used to determine whether the DLL can be unloaded by OLE
  67.  
  68. STDAPI DllCanUnloadNow(void)
  69. {
  70.     AFX_MANAGE_STATE(AfxGetStaticModuleState());
  71.     return (AfxDllCanUnloadNow()==S_OK && _Module.GetLockCount()==0) ? S_OK : S_FALSE;
  72. }
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75. // Returns a class factory to create an object of the requested type
  76.  
  77. STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
  78. {
  79.     return _Module.GetClassObject(rclsid, riid, ppv);
  80. }
  81.  
  82. /////////////////////////////////////////////////////////////////////////////
  83. // DllRegisterServer - Adds entries to the system registry
  84.  
  85. STDAPI DllRegisterServer(void)
  86. {
  87.     // registers object, typelib and all interfaces in typelib
  88.     return _Module.RegisterServer(TRUE);
  89. }
  90.  
  91. /////////////////////////////////////////////////////////////////////////////
  92. // DllUnregisterServer - Removes entries from the system registry
  93.  
  94. STDAPI DllUnregisterServer(void)
  95. {
  96.     return _Module.UnregisterServer(TRUE);
  97. }
  98.  
  99.  
  100.